home *** CD-ROM | disk | FTP | other *** search
- var color1 = 'yellow'
- var color2 = '#C0C0C0'
- var IeTools = null
- var bReadOnly = false;
-
-
- function HandleError(err)
- { alert("Internal error in SCRIPT.JS\n\nErrNo: " + err.number + "\nErrMsg: " + err.description); }
-
- function SetColor(Color)
- {
- var el=event.srcElement
- if (el.type == "button")
- el.style.backgroundColor = Color
- }
-
- function InitState(bLoad)
- {
- for (i = 0; i < 7; i++)
- {
- try
- {
- Obj = document.all["C" + i];
-
- if (bLoad == 1)
- {
- Obj.status = IeTools.Prop(Obj.name);
- Obj.disabled = bReadOnly;
- }
- else
- IeTools.Prop(Obj.name) = Obj.status;
- }
- catch(e)
- {}
-
- try
- {
- Obj = document.all["OCX" + i];
-
- if (bLoad == 1)
- Obj.ReadOnly = bReadOnly;
- else
- Obj.SaveState();
- }
- catch(e)
- {}
-
- if (bReadOnly)
- {
- try
- {
- Obj = document.all["BTN" + i];
- Obj.disabled = true;
- }
- catch(e)
- {}
- }
- }
- }
-
-
- function OnChildKey()
- {
- try
- { parent.OnKey(event); }
- catch(e)
- {}
- }
-
- function OnHelp(ID)
- { IeTools.ShowHelp(ID); }
-
- function SelSound(Name)
- {
- if (!bReadOnly)
- IeTools.Select(Name);
- }
-
-
- function InitDlg()
- { IeTools.InitDlg(document); }
-
- function DoOnlineUpdate()
- {
- try
- {
- parent.window.close();
- IeTools.ShowDlg(IeTools.Prop("UpdateURL"));
- }
- catch(e)
- { HandleError(e); }
- }
-
-
-
- function OnSelectUI(Index)
- {
- try
- {
- IeTools.SelectResDll(SEL2.options[Index].value);
- parent.window.close();
- }
- catch(e)
- {}
- }
-
- function InitUISelector(Obj)
- {
- Obj.innerHTML = "<SELECT ID='SEL2' onchange='OnSelectUI(selectedIndex)'>" + IeTools.Prop('ResDllList'); + "</SELECT>";
- SEL2.disabled = bReadOnly;
- }
-
-
- //-----------------------------------------------------
- // functions used by Prop0.htm
- var CurTip=0;
- var CurDesc=0;
- var nTips=0;
-
- function ShowTipOfDay(TipCount)
- {
- nTips = TipCount;
- var d = new Date();
- ShowTip( (d.getMonth() * 31) + d.getDate() );
- }
-
- function ShowTip(TipID)
- {
- document.all["Tip" + CurTip].style.display="none";
- CurTip = TipID % nTips;
- document.all["Tip" + CurTip].style.display="block";
- }
-
-
- function ShowDesc(Index)
- {
- if ((Index >=0) & (Index <=4))
- {
- document.all["DESC" + CurDesc].style.display="none";
- CurDesc = Index;
- document.all["DESC" + CurDesc].style.display="block";
- }
- }
-
-
- //-----------------------------------------------------
- // globals
- IeTools = parent.window.dialogArguments;
- if (IeTools==null)
- {
- IeTools = new ActiveXObject("PN.PnIETools.1")
- IeTools.hWndParent = document;
- }
-
- bReadOnly = (IeTools.Prop("RunMode") == 0);